const { Service } = require('egg')

class UserService extends Service {

	async addUploadRecord(data) {
		// 添加数据库记录
		const result = await this.app.mysql.insert('file_uploads_info', data);
		return result.affectedRows === 1
	}
}

module.exports = UserService